//继承模板
{extend name="public/base"}


//CSS
{block name="style"}
<link rel="stylesheet" href="__ADMIN_STATIC__/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
{/block}


{block name="breadcrumb" title="当前位置"}{/block}

//正文区域
{block name="body"}{//---------------------------------------------------------------------------}
<article class="page-container">
    <form class="form form-horizontal" id="form1">
        <div id="tab-category" class="HuiTab">
            <div class="tabBar cl">

{volist name="['edit'=>'基本信息' ,'apply'=>'申请人' ,'audit'=>'审批流程' ]" id="item"}

                <span {if condition="request()->action() eq $key"}class="current"{/if}>
                    <a href="{:url($key,['id'=>$info.id])}">{$item}</a>
                </span>
{/volist}


            </div>
            <div class="tabCon" id="" style="display:block;">

{if condition="!$info"}
            <div class="no_content">
            流程信息不存在！！！，请先添加流程。。。
            </div>
{else}
        <div class="panel-title cl">
            <div class="l" style="margin-right:100px;">
            <button class="btn radius Hui-iconfont Hui-iconfont-fenlei" type="button" onclick="expandAll(this)"> 展开</button>
            &nbsp;

            <button class="btn btn-success  radius" type="button" title="刷新" onclick="zTree_init();"><i class="Hui-iconfont">&#xe68f; </i>刷新</button>
            </div>
            <div class="l">

                <input type="hidden" name="id"  value="{$info.id|default=0}"/>
                <button class="btn btn-primary radius" id="saveSubmit" type="button"><i class="Hui-iconfont">&#xe632;</i> 保存并提交 </button>

                <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>


                
            </div>  
        </div>
        <div class="tree">
                <ul id="ztree_apply" class="ztree"></ul>
        </div>       





{/if}  
            </div>

        </div>




        
    </form>
</article>



{/block}
//-----------------------------------------------------------------------------------------------


<!--请在下方写此页面业务相关的脚本-->
//-----------------------------------------------------------------------------------------------
{block name="script"}

<script type="text/javascript">
    const process_id = {$info.id}
</script>
<script type="text/javascript" src="__ADMIN_STATIC__/project/js/zTree_apply.js"></script>

<style>
    

    
</style>



{/block}{//---------------------------------------------------------------------------}